var express = require('express');
var router = express.Router();
var api = require("../module/process")

/*新增流程*/
router.post('/add_process', function (req, res, next) {
    api.add_process(req, res, next)
});
/*查询流程*/
router.post('/find_process', function (req, res, next) {
    api.find_process(req, res, next)
});

/*修改流程*/
router.post('/update_process', function (req, res, next) {
    api.update_process(req, res, next)
});


/*查询代办*/
router.post('/find_agency', function (req, res, next) {
    api.find_agency(req, res, next)
});


/*发起流程*/
router.post('/launch_process', function (req, res, next) {
    api.launch_process(req, res, next)
});
/*审核流程*/
router.post('/audit_process', function (req, res, next) {
    api.audit_process(req, res, next)
});

router.params.name = "process module"
module.exports = router;

